import request from '@/utils/request';
/*.then(res => {
    // 返回数据
})
    .catch(err => {
        // 异常情况
    })*/

// •	获取消息数据接口

// 登录接口
export default {
  getFleetSub(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/subscriberManage/getFleetSub',
      method: 'post',
      data,
    });
  },
  getExtNumber(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/userManage/getExtNumber',
      method: 'post',
      data,
    });
  },
  getSubType(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/subscriberManage/getSubType',
      method: 'post',
      data,
    });
  }, getMobileType(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/subscriberManage/getMobileType',
      method: 'post',
      data,
    });
  },
  addSubscriber(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/subscriberManage/addSubscriber',
      method: 'post',
      data,
    });
  }
  ,
  updateSubscriber(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/subscriberManage/updateSubscriber',
      method: 'post',
      data,
    });
  }, deleteSubscriber(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/subscriberManage/deleteSubscriber',
      method: 'post',
      data,
    });
  }, queryGuarder(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/subscriberManage/queryGuarder',
      method: 'post',
      data,
    });
  }, modifyGuarder(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/subscriberManage/modifyGuarder',
      method: 'post',
      data,
    });
  }, getFleetAndSub(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/fleetManage/getFleetAndSub',
      method: 'post',
      data,
    });
  }, getFleet(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/fleetManage/getFleet',
      method: 'post',
      data,
    });
  }, updateSubscriberIndex(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/subscriberManage/updateSubscriberIndex',
      method: 'post',
      data,
    });
  },batchExport(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/subscriberManage/batchExport',
      method: 'post',
      data,
    });
  },importSubscriber(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/subscriberManage/importSubscriber',
      method: 'post',
      data,
    });
  },

};
